<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
  xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"
  xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema"
  expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="Examples">
 
  <process id="mainProcessSync" isExecutable="true">

    <startEvent id="start" />
    
    <sequenceFlow sourceRef="start" targetRef="serviceBefore" />
    
    <serviceTask id="serviceBefore" camunda:delegateExpression="${delegateBefore}" />
    
    <sequenceFlow sourceRef="serviceBefore" targetRef="callActivity" />
    
    <callActivity id="callActivity" calledElement="${calledElement}" />
    
    <sequenceFlow sourceRef="callActivity" targetRef="serviceAfter" />
    
    <serviceTask id="serviceAfter" camunda:delegateExpression="${delegateAfter}" />
    
    <sequenceFlow sourceRef="serviceAfter" targetRef="userTask" />
    
    <userTask id="userTask" />
    
    <sequenceFlow sourceRef="userTask" targetRef="end" />
    
    <endEvent id="end" />

  </process>
  
</definitions>